<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>New Document - VSCode Extension</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        :root {
            --bg-primary: #1e1e1e;
            --bg-secondary: #252526;
            --bg-tertiary: #2d2d2d;
            --bg-active: #37373d;
            --text-primary: #cccccc;
            --accent-blue: #0e639c;
            --accent-green: #4ec9b0;
            --accent-blue-light: #569cd6;
            --accent-gray: #808080;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            height: 100vh;
            display: flex;
            overflow: hidden;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { transform: translateX(-20px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* Left Sidebar */
        .activity-bar {
            width: 50px;
            height: 100vh;
            background-color: var(--bg-secondary);
            border-right: 1px solid var(--bg-primary);
            animation: fadeIn 0.3s ease-out;
        }

        /* Document Explorer Panel */
        .explorer-panel {
            width: 300px;
            height: 100vh;
            background-color: var(--bg-secondary);
            border-right: 1px solid var(--bg-primary);
            display: flex;
            flex-direction: column;
            padding: 15px;
            animation: slideIn 0.3s ease-out;
        }

        .panel-title {
            font-size: 14px;
            padding: 8px 15px;
            background-color: var(--bg-tertiary);
            margin-bottom: 15px;
            border-radius: 4px;
            font-weight: 500;
            letter-spacing: 0.5px;
            transition: background-color 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .add-button {
            background: none;
            border: none;
            color: var(--text-primary);
            cursor: pointer;
            font-size: 16px;
            padding: 0 8px;
            transition: color 0.2s;
        }

        .add-button:hover {
            color: var(--accent-blue-light);
        }

        .document-list {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .document-item {
            display: flex;
            align-items: center;
            padding: 12px;
            background-color: var(--bg-tertiary);
            gap: 12px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            animation: fadeIn 0.3s ease-out;
            animation-fill-mode: both;
        }

        .document-item:nth-child(1) { animation-delay: 0.1s; }
        .document-item:nth-child(2) { animation-delay: 0.2s; }
        .document-item:nth-child(3) { animation-delay: 0.3s; }

        .document-item:hover {
            background-color: var(--bg-active);
            transform: translateX(5px);
        }

        .document-item.active {
            background-color: var(--bg-active);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .status-indicator {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            transition: transform 0.2s ease;
        }

        .status-approved {
            background-color: var(--accent-green);
            box-shadow: 0 0 10px rgba(78, 201, 176, 0.3);
        }

        .status-in-progress {
            background-color: var(--accent-blue-light);
            box-shadow: 0 0 10px rgba(86, 156, 214, 0.3);
        }

        .status-pending {
            background-color: var(--accent-gray);
        }

        /* Main Editor Area */
        .main-editor {
            flex: 1;
            display: flex;
            padding: 15px;
            gap: 15px;
            animation: fadeIn 0.4s ease-out;
            position: relative;
        }

        /* New Document Dialog */
        .dialog-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease-out;
        }

        .dialog {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            width: 500px;
            padding: 24px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            animation: fadeIn 0.3s ease-out;
        }

        .dialog-title {
            font-size: 20px;
            font-weight: 500;
            margin-bottom: 24px;
            color: #ffffff;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: var(--text-primary);
        }

        .radio-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .radio-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px;
            background-color: var(--bg-tertiary);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .radio-option:hover {
            background-color: var(--bg-active);
        }

        .radio-option.selected {
            background-color: var(--accent-blue);
            color: white;
        }

        .radio-input {
            appearance: none;
            width: 18px;
            height: 18px;
            border: 2px solid var(--text-primary);
            border-radius: 50%;
            margin: 0;
            position: relative;
            cursor: pointer;
        }

        .radio-option.selected .radio-input {
            border-color: white;
        }

        .radio-input:checked::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 10px;
            height: 10px;
            background-color: white;
            border-radius: 50%;
        }

        .select-wrapper {
            position: relative;
            margin-top: 12px;
        }

        .select-wrapper::after {
            content: '▼';
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            font-size: 12px;
        }

        select {
            width: 100%;
            padding: 12px;
            background-color: var(--bg-tertiary);
            border: 1px solid var(--bg-active);
            border-radius: 6px;
            color: var(--text-primary);
            appearance: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        select:hover {
            background-color: var(--bg-active);
            border-color: var(--accent-blue);
        }

        select:focus {
            outline: none;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 2px rgba(14, 99, 156, 0.2);
        }

        .dialog-actions {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--bg-active);
        }

        .btn {
            padding: 10px 24px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn:hover {
            transform: translateY(-1px);
        }

        .btn:active {
            transform: translateY(1px);
        }

        .btn-primary {
            background-color: var(--accent-blue);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(14, 99, 156, 0.2);
        }

        .btn-primary:hover {
            background-color: #1177bd;
            box-shadow: 0 4px 12px rgba(14, 99, 156, 0.3);
        }

        .btn-secondary {
            background-color: var(--bg-active);
            color: var(--text-primary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .btn-secondary:hover {
            background-color: #454545;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        /* Navigation */
        .nav-links {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            background-color: var(--bg-active);
            padding: 10px;
            border-radius: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            z-index: 1000;
        }

        .nav-link {
            color: var(--text-primary);
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 15px;
            transition: all 0.2s ease;
        }

        .nav-link:hover {
            background-color: var(--accent-blue);
            color: white;
        }

        .nav-link.active {
            background-color: var(--accent-blue);
            color: white;
        }
    </style>
</head>
<body>
    <!-- Left Sidebar -->
    <div class="activity-bar"></div>

    <!-- Document Explorer Panel -->
    <div class="explorer-panel">
        <div class="panel-title">
            DESIGN DOCUMENTS
            <button class="add-button" title="New Document">+</button>
        </div>
        <div class="document-list">
            <div class="document-item">
                <div class="status-indicator status-approved"></div>
                <span>Inception Plan</span>
                <span class="document-status">✓</span>
            </div>
            <div class="document-item">
                <div class="status-indicator status-in-progress"></div>
                <span>Functional Design</span>
                <span class="document-status">⋯</span>
            </div>
            <div class="document-item">
                <div class="status-indicator status-pending"></div>
                <span>Technical Design</span>
                <span class="document-status">-</span>
            </div>
        </div>
    </div>

    <!-- Main Editor Area with New Document Dialog -->
    <div class="main-editor">
        <div class="dialog-overlay">
            <div class="dialog">
                <h2 class="dialog-title">New Document</h2>
                
                <div class="form-group">
                    <label class="form-label">Select Document Type</label>
                    <div class="radio-group">
                        <label class="radio-option">
                            <input type="radio" name="docType" class="radio-input">
                            <span>Inception Document</span>
                        </label>
                        <label class="radio-option selected">
                            <input type="radio" name="docType" class="radio-input" checked>
                            <span>Functional Design</span>
                        </label>
                        <label class="radio-option">
                            <input type="radio" name="docType" class="radio-input">
                            <span>Technical Design</span>
                        </label>
                    </div>
                </div>

                <div class="form-group">
                    <label class="form-label">Template</label>
                    <div class="select-wrapper">
                        <select>
                            <option>Standard Template</option>
                            <option>Microservices Template</option>
                            <option>Cloud Architecture Template</option>
                            <option>Custom Template</option>
                        </select>
                    </div>
                </div>

                <div class="dialog-actions">
                    <button class="btn btn-secondary">Cancel</button>
                    <button class="btn btn-primary">Create</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Navigation -->
    <div class="nav-links">
        <a href="index.html" class="nav-link">Main View</a>
        <a href="usecase1.html" class="nav-link active">New Document</a>
        <a href="usecase2.html" class="nav-link">Context Library</a>
        <a href="usecase3.html" class="nav-link">Review Process</a>
    </div>
</body>
</html>